
import com.baomidou.mybatisplus.core.toolkit.AES;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.mp.Service.UserService;
import com.itheima.mp.domain.po.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @description:
 * @author: 韩汶锦
 * @date: 2025/4/9
 */
public class Tset {

    @Test
    void test(){
        String randomkey = AES.generateRandomKey();
        System.out.println(randomkey);
        String encrypt = AES.encrypt("208085", randomkey);
        System.out.println(encrypt);
        String decrypt = AES.encrypt("root", randomkey);
        System.out.println(decrypt);
    }



}
